/*
 * Copyright 2005-2007 Pulse Technologies. Tutti i diritti riservati.
 */

package org.obsidianrad.server.services.obj2db.commodities;

import java.io.Serializable;

import org.obsidianrad.server.services.obj2db.commodities.Style.SortDir;


/**
 * 
 * @author eliosh
 * @version $Rev: 4 $
 * @lastautorcommit $Author: eliosh $
 * @lastdatecommit $Date: 2009-10-31 12:37:28 +0100(sab, 31 ott 2009) $
 */
public class SortInfo implements Serializable {

	  /**
	 * 
	 */
	private static final long serialVersionUID = 8319116320151287571L;
	private String sortField;
	  private SortDir sortDir = SortDir.NONE;

	  /**
	   * Creates a new sort field instance.
	   */
	  public SortInfo() {

	  }

	  /**
	   * Creates a new sort info instance.
	   * 
	   * @param field the sort field
	   * @param sortDir the sort direction
	   */
	  public SortInfo(String field, SortDir sortDir) {
	    this.sortField = field;
	    this.sortDir = sortDir;
	  }

	  /**
	   * Returns the sort field.
	   * 
	   * @return the sort field
	   */
	  public String getSortField() {
	    return sortField;
	  }

	  /**
	   * Sets the sort field.
	   * 
	   * @param sortField the sort field
	   */
	  public void setSortField(String sortField) {
	    this.sortField = sortField;
	  }

	  /**
	   * Returns the sort direction.
	   * 
	   * @return the sort direction
	   */
	  public SortDir getSortDir() {
	    return sortDir;
	  }

	  /**
	   * Sets the sort direction.
	   * 
	   * @param sortDir the sort direction
	   */
	  public void setSortDir(SortDir sortDir) {
	    this.sortDir = sortDir;
	  }

	}
